package com.lanting.constant;

import java.io.IOException;
import java.util.Properties;

import com.lanting.meetingserver.util.SynSysUtil;

public class Constants {
	public static final String SYN_SYS_BASE_URL ;
	public static final String ROOT_UPLOAD_PATH ;
	
	static {
		Properties prop = new Properties();
		try {
			prop.load(SynSysUtil.class.getClassLoader().getResourceAsStream("config.properties"));
		} catch (IOException e) {
			throw new ExceptionInInitializerError("读取配置文件config.properties 失败！");
		}
		SYN_SYS_BASE_URL = prop.getProperty("synsystem.address");
		ROOT_UPLOAD_PATH = prop.getProperty("uploadRootPath");
	}
}
